﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MyTestWeb
{
	public partial class WebForm1 : System.Web.UI.Page
	{
        public WebForm1()
        {
        }

        protected void Page_Load(object sender, EventArgs e)
		{

           
            
            for (int i = 1949; i <= 2050; i++) {
                DropDownList1.Items.Add(i.ToString());
            }
            for (int i = 1; i <= 12; i++)
            {
                DropDownList2.Items.Add(i.ToString());
            }
            for (int i = 1; i <= 30; i++)
            {
                DropDownList3.Items.Add(i.ToString());
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            String bir = DropDownList1.Text + "年" +
                DropDownList2 + "月" + DropDownList3 + "日";
        }

     

        protected void Button2_Click(object sender, EventArgs e)
        {
            Random random = new Random();
            int num = random.Next(100);
            Label1.Text = num.ToString();
        }
    }
}